package com.huaweicloud.controller;


import com.huaweicloud.commons.pojo.User;
import com.huaweicloud.commons.response.ProfileResult;
import com.huaweicloud.commons.response.Result;
import com.huaweicloud.commons.response.ResultCode;
import com.huaweicloud.service.ICompanyService;
import com.huaweicloud.vo.CompanyVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@Log4j2
@CrossOrigin
@RestController
@RequestMapping("/company")
public class CompanyController {

    @Autowired
    private ICompanyService companyService;

    /**
     * 添加企业信息
     *
     * @param companyVo
     * @return
     */
    @PostMapping
    public Result<String> addCompanyInfo(@RequestBody CompanyVo companyVo) {
        return Result.createResult(companyService.addCompanyInfo(companyVo));
    }
}
